package com.wteam.PoJo.DO;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 点赞记录表
 * </p>
 *
 * @author author
 * @since 2024-08-02
 */
@TableName("tb_likes")
@ApiModel(value="Likes对象", description="点赞记录表")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Likes implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "区分是属于帖子还是作品，1为帖子，2为作品,3为评论 4为回复")
    private Integer type;

    @ApiModelProperty(value = "关联到tb_postwork和tb_artwork,标识点赞属于哪个具体的帖子或作品")
    private Long parentId;

    @ApiModelProperty(value = "点赞时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "评论id")
    private Long commentId;

    private LocalDateTime updateTime;

    @ApiModelProperty(value = "回复id")
    private Long replyId;

}

